import request from '../utils/request';
import { AuthResponse } from '../types/user';

export const login = (data: any): Promise<AuthResponse> => {
  return request('/auth/login', 'POST', data);
};

export const register = (data: any): Promise<AuthResponse> => {
  return request('/auth/register', 'POST', data);
};
